<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<!--
Copyright 2008, 2009, 2010 Miguel Ángel Laguna Lobato

This file is part of Multiclinical Trial Web-PACS.

Multiclinical  Trial Web-PACS is free  software: you  can redistribute 
it and/or modify it under  the terms of the GNU General Public License 
as published by the Free  Software Foundation, either version 3 of the 
License, or (at your option) any later version.

Multiclinical  Trial Web-PACS is distributed  in the hope that it will 
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
of  MERCHANTABILITY or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
General Public License for more details.

You should have received a copy of the GNU General Public License
along with Multiclinical Trial Web-PACS.  If not, see 
<http://www.gnu.org/licenses/>. 
 -->

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/jsp/include/templateEditionAdm.xhtml">

<ui:define name="saveState">
	<t:saveState value="#{imageTypeBean.FSrcObject}" />
	<t:saveState value="#{imageTypeBean.FEdcObject}" />
</ui:define>

<ui:define name="title">
	<h3>
		<h:outputText value="#{msgs['jsf.headers.ImageTypeEdition']}" />
	</h3>
</ui:define>

<ui:define name="editionForm">
	<h:panelGroup id="cuerpo">
		<h:panelGrid columns="3">

			<h:outputLabel value="#{msgs['jsf.generic.Code']}" styleClass="frmLabel" for="code" />
			<h:inputText styleClass="frmInput" id="code" value="#{imageTypeBean.FEdcObject.code}" readonly="true" size="3" />
			<t:message id="codeError" for="code" />
			
			<h:outputLabel value="#{msgs['jsf.generic.Name']}" styleClass="frmLabel" for="name" />
			<h:inputText styleClass="frmInput" id="name" value="#{imageTypeBean.FEdcObject.name}" required="true" />
			<t:message id="nameError" for="name" />

			<h:outputLabel value="#{msgs['jsf.generic.Pattern']}" styleClass="frmLabel" for="pattern" />
			<h:inputTextarea styleClass="frmInput" id="pattern" value="#{imageTypeBean.FEdcObject.pattern}" />
			<t:message id="patternError" for="pattern" />

		</h:panelGrid>
	</h:panelGroup>
</ui:define>

<ui:define name="buttonsForm">
	<h:panelGrid columns="4">
		<h:commandButton id="find" value="#{msgs['jsf.actions.Save']}" action="#{imageTypeBean.accSaveImageType}" styleClass="frmButton" />
		<h:commandButton id="volver" value="#{msgs['jsf.actions.Back']}" action="#{imageTypeBean.accFindImageTypes}" styleClass="frmButton" immediate="true" />
	</h:panelGrid>
</ui:define>

</ui:composition>

</html>
	